exports.encodeURIComponent = function (string) {
  return encodeURIComponent(string);
}


exports.emitError = function (eventEmitter) {
  return function (errString) {
    return function () {
      return eventEmitter.emit("error",errString);
    }
  }
}

exports.emitDrain = function (eventEmitter) {
  return function () {
    return eventEmitter.emit("drain");
  }
}

exports.streamPush = function (stream) {
  return function (pushData) {
    return function () {
      stream.push(pushData);
    }
  }
}